<?php 

require('inc/db.php');

$id = $_GET['id'];

// 组装插入sql
$sql = "select * from house where id=$id";

// 执行mysql查询
$result = mysql_query($sql, $conn);

$house = mysql_fetch_array( $result, MYSQL_ASSOC );

?>
<?php include('header.php'); ?>

<div class="wrapper">
	<div class="main">
		<div class="bcl">
    		<div class="title">新闻中心</div>
            <div class="kuang">
            	<ul>
                	<li><a href="news_list.php?sort=kaiye">凯业新闻</a></li>  
      			  	<li><a href="news_list.php?sort=fagui">政策法规</a></li>
              	  	<li><a href="news_list.php?sort=hangye">行业新闻</a></li>
      			</ul>
            </div>
        </div>
        
        <div class="main_right">
    		<div class="title"><?php echo $house['name'] ?></div>
        	<div class="news_c">
                <img src="<?php echo $house['picture_path'] ?>" />    
                <div class="wz02">
                	<?php echo $house['content'] ?>
                </div>
            </div>
        </div>
    </div>
</div>

<?php include('footer.php') ?>